const activeMixin = {
  computed: {
    isBtnActive() {
      let active = false;
      const Form = this.Form;
      for (const key in Form) {
        if (Form.hasOwnProperty(key)) {
          if (key === "username") {
            active = this.rule.test(Form[key]); // 如果属性为 username就采用正则验证，如果验证失败直接false代表不高亮
            if (!active) {
              return active;
            }
          } else {
            active = !!Form[key];
          }
        }
      }
      return active;
    }
  }
};
export default activeMixin;
